package org.jeecg.chase.modules.merch.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.jeecg.chase.modules.merch.entity.AdhMerchInfo;
import org.jeecg.chase.modules.merch.entity.AdhMerchUser;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * @Description: 商家管理
 * @Author: jeecg-boot
 * @Date:   2022-02-10
 * @Version: V1.0
 */
public interface IAdhMerchInfoService extends IService<AdhMerchInfo> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(AdhMerchInfo adhMerchInfo,List<AdhMerchUser> adhMerchUserList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(AdhMerchInfo adhMerchInfo,List<AdhMerchUser> adhMerchUserList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	public List<AdhMerchInfo> getMerchInfoByPhoneNumber(String phoneNumber);

	public List<Map<String,Object>> getFocusMerchInfoByUserIdAndMerchId( String merchId, String userId);

	public List<Map<String,Object>> getFocusMerchInfoByUserId( String userId);
}
